package com.yesido.moshi.seven.openandclose;

/**
 * @author yesido
 * @description 开闭原则测试
 * @date 2023-06-12 0:29
 * @Version 8.3
 */
public class OcpTest {
    public static void main(String[] args) {
        //使用看看存在的问题
        GraphicEditor graphicEditor = new GraphicEditor();
        graphicEditor.drawShape(new Rectangle());
        graphicEditor.drawShape(new Circle());
        graphicEditor.drawShape(new Triangle());
        graphicEditor.drawShape(new OtherGraphic());
    }

}
